<!DOCTYPE HTML>
<html>
<head>
    <title>我的订单</title>
    <% include common/meta.ejs %>
    <% include common/public.ejs %>
</head>
<body ontouchstart="">
<div class="weui_cells weui_cells_access">
    <% for(var i = 0;i < data.length;i++) { %>
    <a href="houseInfo?id=<%= data[i].house.id %>"
       class="weui_media_box weui_media_text weui_media_appmsg">
        <div class="weui_media_hd">
            <img class="weui_media_appmsg_thumb"
                 src="<%= '/yams-upload'+ (data[i].house.primaryImage || '/images/noImage.png') %>"
                 alt="">
        </div>
        <div class="weui_media_bd">
            <span class="weui_media_title" style="font-size: 0.75rem;"><%= data[i].house.name %></span>
            <p class="weui_media_desc"><%= data[i].statusName %>
                <span style="color: #888;margin-left: 1rem;">
                    <%= (data[i].arrivedDate == null ? '无' : data[i].arrivedDate.substr(0,10))
                    +'至'+(data[i].leavedDate == null ? '无' : data[i].leavedDate.substr(0,10)) %>
                </span>
            <ul class="weui_media_info" style="color: #666;">
                <li class="weui_media_info_meta"><%= data[i].house.houseTypeName %></li>
                <li class="weui_media_info_meta"><%= data[i].house.area + '平米' %></li>
                <li class="weui_media_info_meta weui_media_info_meta_extra">
                    <strong><%= data[i].house.area + data[i].house.monthly %>元/月</strong></li>
            </ul>

        </div>
    </a>
    <% } %>
</div>
<% if(!data.length) { %>
<div style="padding: 10px 20px;">暂无预订</div>
<% } %>
<% include common/footer.ejs %>

</body>
</html>